package com.yihaodian.search.fetch;

import java.util.Arrays;

import com.yihaodian.api.common.Request;
import com.yihaodian.search.broker.shard.ShardSearchRequest;

public class FetchRequest extends Request{
	long id;

    int[] docIds;

    int size;
    
    // Just for test. Delete later.
    public ShardSearchRequest request;
	
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public int[] getDocIds() {
		return docIds;
	}

	public void setDocIds(int[] docIds) {
		this.docIds = docIds;
	}

	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}

	@Override
	public String toString() {
		return "FetchRequest [id=" + id + ", docIds=" + Arrays.toString(docIds)
				+ ", size=" + size + "]";
	}
	
}
